package com.wyz.note.project.security.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 菜单
 * @Author: wei yz
 * @Date: 2022/6/18 14:30
 */
public class Menu implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private String id;
    /**
     * 规则
     */
    private String pattern;
    /**
     * 角色信息
     */
    private List<Role> roles;

    @Override
    public String toString() {
        return "Menu{" +
                "id='" + id + '\'' +
                ", pattern='" + pattern + '\'' +
                ", roles=" + roles +
                '}';
    }

    public Menu() {
    }

    public Menu(String id, String pattern) {
        this.id = id;
        this.pattern = pattern;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
